package com.portal.tag;


import javax.portlet.PortletResponse;
import javax.portlet.PortletURL;
import javax.portlet.RenderResponse;
import javax.portlet.ResourceResponse;

public class RenderURLTag286 extends PortletURLTag286 {
	
	private static final long serialVersionUID = 286L;

	@Override
	protected PortletURL createPortletUrl(PortletResponse portletResponse){
		
		if (portletResponse instanceof RenderResponse) {
			return ((RenderResponse)portletResponse).createRenderURL();			
		}
		else if (portletResponse instanceof ResourceResponse) {
			return ((ResourceResponse)portletResponse).createRenderURL();			
		}
		
		throw new IllegalArgumentException();
	}
    
}

